package pl.edu.agh.pp.uhd.scp;



import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class Activator implements BundleActivator {

	
	public static BundleContext context;
	private DeviceListener listener;
	
	@Override
	public void start(BundleContext context) throws Exception {
		
		
		Activator.context = context;
		listener=new DeviceListener();
		listener.discover();
	
	}

	@Override
	public void stop(BundleContext arg0) throws Exception {
		// TODO Auto-generated method stub
		listener.close();
	}

	
}
